package org.example.inventory.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 销售记录类（对应销售记录表）
 */
public class Sale extends BaseEntity{
    private Integer productId;          // 商品ID
    private Integer quantity;           // 销售数量
    private BigDecimal salePrice;       // 销售价格
    private Integer operatorId;         // 操作员ID
    private LocalDateTime saleTime;     // 销售时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public LocalDateTime getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(LocalDateTime saleTime) {
        this.saleTime = saleTime;
    }
}
